<!DOCTYPE html>
<html lang="en">
{% load static %}
{% include 'api/header.html' %}
<body>
{% include 'api/nav-top.html' %}

<div class="container-fluid">
    <div class="row">
          {% include 'api/nav-left.html' %}
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h1 class="page-header">{{name}}--测试报告</h1>
            <ol class="breadcrumb">
                  <li><a href="{% url 'api:index'  %}">DashBoard</a></li>
                  <li><a href="{% url 'api:report_detail' id %}">报告详情</a></li>
                  <!--<li class="active">Data</li>-->
             </ol>
            <div class="table-responsive">
                <table class="table table-striped">
                    <thead>
                    <tr>
                        <th>名称</th>
                        <th>url</th>
                        <th>方法</th>
                        <th>入参</th>
                        <th>期望值</th>
                        <th>实际值</th>
                        <th>判定</th>
                        <th>响应码</th>
                        <th>耗时</th>
                    </tr>
                    </thead>
                    <tbody>
                    {% if case_list %}
                    {% for i in  case_list %}
                    <tr id="{{i.id}}">
                        <td class="break-word-w100">{{i.name}}</td>
                        <td class="break-word-w200">{{i.url}}</td>
                        <td>{{i.method}}</td>
                        <td class="break-word-w100">{{i.params}}</td>
                        <td>{{i.hope}}</td>
                        <td class="break-word-w200"> {{i.fact}}</td>
                        {% if i.result == 0 %}
                          <td>通过</td>
                         {% elif i.result == -1 %}
                             <td>失败</td>
                         {% else %}
                           <td>未检测</td>
                        {% endif %}
                        <td>{{i.code}}</td>
                        <td>{{i.sum_time}}</td>

                    </tr>
                    {% endfor %}
                    {% else %}
                    <tr>
                        <td>无数据</td>
                    </tr>
                    {% endif %}
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
{% include 'api/foot.html' %}
<script src="{% static  'js/detail.js' %}"></script>

</body>
</html>
